var gulp = require('gulp');
var webserver = require('gulp-webserver');

gulp.task('webserver', function () {
    gulp.src('./')
        .pipe(webserver({
            host: 'localhost',
            port: 3000,
            livereload: true,
            open: './login.html',
            directoryListing: {
                enable: true,
                path: './'
            },
            proxies: [
                {
                    source: '/proxy', target: 'http://118.25.208.216:8002/'
                }
            ]
        }))
});
gulp.task('default', ['webserver'], function () {
    console.log('成功');
});